//
//  playerCollectionViewCell.m
//  片刻
//
//  Created by lanou3g on 15/6/11.
//  Copyright (c) 2015年 lanou3g. All rights reserved.
//

#import "playerCollectionViewCell.h"
#import <UIImageView+WebCache.h>
@implementation playerCollectionViewCell
- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        self.image = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, 100, 100)];

        [self.contentView addSubview:self.image];
        self.label = [[UILabel alloc] initWithFrame:CGRectMake(2, 80, 96, 20)];
        self.label.font = [UIFont systemFontOfSize:10]; // 大小
        [self.label setTextColor:[UIColor whiteColor ]]; //颜色
        [self.contentView addSubview:self.label];
    }
    return self;
}

-(void)setModel:(RadioModel *)model
{
    if (_model != model) {
        [_model release];
        _model = [model retain];
       
        [self.image sd_setImageWithURL:[NSURL URLWithString:model.coverimg]];
        
        _label.text =model.title;
    }
}

@end
